<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<button id="food"  onclick="changeFood()"></button>
	</body>
	
	<script>
		var food="糖醋排骨";
		document.getElementById("food").innerText = food;
		function changeFood(){
			// js修改内容是繁琐复杂
			document.getElementById("food").innerText += "好好吃";
		}
	</script>
</html>
